// DlgPageProperty.cpp : implementation file
//

#include "stdafx.h"
#include "ansieditor.h"
#include "DlgPageProperty.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CDlgPageProperty dialog


CDlgPageProperty::CDlgPageProperty(CWnd* pParent /*=NULL*/)
	: CDialog(CDlgPageProperty::IDD, pParent)
{
	//{{AFX_DATA_INIT(CDlgPageProperty)
	m_nTiming = 0;
	//}}AFX_DATA_INIT
}


void CDlgPageProperty::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CDlgPageProperty)
	DDX_Control(pDX, IDC_TXT_TIMING, m_txtTiming);
	DDX_Control(pDX, IDC_SPIN_TIMING, m_spinTiming);
	DDX_Text(pDX, IDC_TXT_TIMING, m_nTiming);
	DDV_MinMaxInt(pDX, m_nTiming, 0, 50);
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CDlgPageProperty, CDialog)
	//{{AFX_MSG_MAP(CDlgPageProperty)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CDlgPageProperty message handlers

BOOL CDlgPageProperty::OnInitDialog() 
{
	CDialog::OnInitDialog();
	
	m_spinTiming.SetRange32(0, 50);

	gpApp->m_mui.UpdateDialog(this, IDD);
	return TRUE;  // return TRUE unless you set the focus to a control
	              // EXCEPTION: OCX Property Pages should return FALSE
}
